package com.eden.door.entity;

import java.io.Serializable;
import java.util.List;

public class DoorAttr implements Serializable{

	private static final long serialVersionUID = 1L;

	//属性的名称
	private String name ;
	//属性的值(可能为List,如果type为select时)
	private String value ;
	//下拉选框的选项
	private List<Option> optList ;
	//属性的编码，计算时用
	private String code ;
	//类型，select ,text , readonly
	private String type ;
	//填写类型：manual , auto
	private String fill ;
	
	//计算顺序
	private int compuOrder ;
	//打印顺序
	private int printOrder ;
	
	private int showOrder ;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getFill() {
		return fill;
	}
	public void setFill(String fill) {
		this.fill = fill;
	}
	public int getPrintOrder() {
		return printOrder;
	}
	public void setPrintOrder(int printOrder) {
		this.printOrder = printOrder;
	}
	
	@Override
	public String toString(){
		return super.toString() + ":[name:" + name + ",code:" + code + ",value:" + value + ",optList:" + optList + ",type:"
				+type + ",fill:" + fill + ",compuOrder:" + compuOrder + ",printOrder:" + printOrder + "]";
	}
	
	public int getCompuOrder() {
		return compuOrder;
	}
	public void setCompuOrder(int compuOrder) {
		this.compuOrder = compuOrder;
	}
	/**
	 * @return the optList
	 */
	public List<Option> getOptList() {
		return optList;
	}
	/**
	 * @param optList the optList to set
	 */
	public void setOptList(List<Option> optList) {
		this.optList = optList;
	}
	/**
	 * @return the value
	 */
	public String getValue() {
		return value;
	}
	/**
	 * @param value the value to set
	 */
	public void setValue(String value) {
		this.value = value;
	}
	public int getShowOrder() {
		return showOrder;
	}
	public void setShowOrder(int showOrder) {
		this.showOrder = showOrder;
	}
}
